package com.biqee.exception;

public class AccessBlockException extends RuntimeException {

	private static final long serialVersionUID = 1L;

		public AccessBlockException(Throwable cause) {
	        super(cause);
	    }
		
		public AccessBlockException(String message) {
			 super(message);
	    }

	    public AccessBlockException(ErrorCode errorCode, Object...parameters)  {
	        super(String.format(errorCode.toString(), parameters));
	    }

	    public AccessBlockException(ErrorCode errorCode,Throwable cause) {
	        super(errorCode.toString(),cause);
	    }

	    public AccessBlockException(ErrorCode errorCode, Throwable cause, Object...parameters) {
	        super(String.format(errorCode.toString(), parameters), cause);
	    }
}